package com.topboya.officeuser.utils;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.UUID;

/**
 * @className UtilTools
 * @Author xiaxin
 * @Date 2020/8/7 16:20
 * @Version 1.0
 **/
public class UtilTools {
    public static  String getNum19(){
        String numStr = "" ;
        String trandStr = String.valueOf((Math.random() * 9 + 1) * 1000000);

        String dataStr = new SimpleDateFormat("yyyyMMddHHMMSS").format(new Date());
        numStr = trandStr.toString().substring(0, 4);
        numStr = numStr + dataStr ;
        return numStr ;
    }
    public static String getUUID32(){
        return UUID.randomUUID().toString().replaceAll("-", "").toUpperCase() ;
    }
}